<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function demo1(){
    	// if(IS_POST)
    	// {
    	// 	var_dump($_FILES);
    	// }
     //    $this->display();
     //    
     //    
    	
    	$list = M('menu')->select();
    	// echo "<pre>";
    	// print_r($list);

    	$res = getTree($list);
    	// print_r($res); 
    	$this->assign('list', $res);
    	$this->display();

    }
}